﻿namespace MODEL
{
    public partial class qgzx_performance
    {
        #region 纯的实体对象 + ToPOCO()
        /// <summary>
        /// 纯的实体对象
        /// </summary>
        /// <returns></returns>
        public qgzx_performance ToPOCO()
        {
            qgzx_performance poco = new qgzx_performance()
            {
                PerforId = this.PerforId,
                ApplyId = this.ApplyId,
                PositionName = this.PositionName,
                PositionId = this.PositionId,
                WorkStudentNum = this.WorkStudentNum,
                WorkStudentName = this.WorkStudentName,
                AbsentTimes = this.AbsentTimes,
                WorkEvaluate = this.WorkEvaluate,
                PerforScore = this.PerforScore,
                RegisterTime = this.RegisterTime,
                AuditStatus = this.AuditStatus,
                AuditReason = this.AuditReason,
                AuditTime = this.AuditTime
            };
            return poco;
        }
        #endregion

        #region 1.0 生成 TViewModel 实体对象 +ToViewModel
        /// <summary>
        /// 生成 很纯洁的 实体对象
        /// </summary>
        /// <returns></returns>
        public ViewModel.Performance ToViewModel()
        {
            ViewModel.Performance poco = new ViewModel.Performance()
            {
                PerforId = this.PerforId,
                ApplyId = this.ApplyId,
                PositionName = this.PositionName,
                PositionId = this.PositionId,
                WorkStudentNum = this.WorkStudentNum,
                WorkStudentName = this.WorkStudentName,
                AbsentTimes = this.AbsentTimes,
                WorkEvaluate = this.WorkEvaluate,
                PerforScore = this.PerforScore,
                RegisterTime = this.RegisterTime,
                AuditStatus = this.AuditStatus,
                AuditReason = this.AuditReason,
                AuditTime = this.AuditTime
            };
            return poco;
        }
        #endregion
    }
}
